package com.uflower.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 订单项信息
 * 
 * @author bridge
 * @email bridgezrq@163.com
 * @date 2022-01-15 14:59:31
 */
@Data
@TableName("of_order_item")
public class OrderItemEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId
	private Long id;
	/**order_id
	 */
	private Long orderId;
	/**order_sn
	 */
	private String orderSn;
	/**spu_id
	 */
	private Long spuId;
	/**spu_name
	 */
	private String spuName;
	/**spu_pic
	 */
	private String spuPic;
	/**品牌
	 */
	private String spuBrand;
	/**商品分类id
	 */
	private Long categoryId;
	/**商品sku编号
	 */
	private Long skuId;
	/**商品sku名字
	 */
	private String skuName;
	/**商品sku图片
	 */
	private String skuPic;
	/**商品sku价格
	 */
	private BigDecimal skuPrice;
	/**商品购买的数量
	 */
	private Integer skuQuantity;
	/**商品销售属性组合（JSON）
	 */
	private String skuAttrsVals;
	/**商品促销分解金额
	 */
	private BigDecimal promotionAmount;
	@TableField(exist = false)
	private BigDecimal totalAmount;
	@TableField(exist = false)
	private BigDecimal realAmount;
}
